* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-c olor: #f0f2f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    gap: 20px;
    padding: 0 15px;
}

/* 左侧信息卡片样式 */
.info-card {
    flex: 0 0 360px;
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.info-card h2 {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.avatar-container {
    text-align: center;
    margin-bottom: 20px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.info-item .label {
    color: #666;
    width: 80px;
}

.info-item .value {
    color: #333;
    flex: 1;
}

/* 右侧表单卡片样式 */
.form-card {
    flex: 1;
	padding: 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.tabs {
    display: flex;
    border-bottom: 1px solid #eee;
	margin-bottom: 20px;
}

.tab {
    padding: 15px 20px;
    cursor: pointer;
	margin-right: 10px;
}

.tab.active {
    color: #1890ff;
    border-bottom: 2px solid #1890ff;
}

.info-form {
    /* padding: 20px; */
	display: none;
}

.info-form.active{
	display: block;
}
.form-item {
    margin-bottom: 20px;
}

.form-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: #f56c6c;
    margin-left: 4px;
}

.form-item input[type="text"],
.form-item input[type="tel"],
.form-item input[type="email"] {
    width: 100%;
    max-width: 400px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 4px;
}

.form-actions {
    margin-top: 30px;
}

.btn-save,
.btn-cancel {
    padding: 8px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
}

.btn-save {
    background: #409eff;
    color: white;
}

.btn-cancel {
    background: #f56c6c;
    color: white;
}
/* 修改密码表单特定样式 */
.form-item input[type="password"] {
    width: 100%;
    max-width: 400px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
}

.form-item input::placeholder {
    color: #999;
    font-size: 14px;
}

/* 标签页样式优化 */
.tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.tab {
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.tab.active {
    color: #409eff;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #409eff;
}

/* 将头像样式限定在个人中心的info-card内 */
.info-card .avatar-container .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

/* 确保不影响导航栏头像 */
header nav .profile .avatar {
    width: 40px;  /* 保持导航栏头像的原始大小 */
    height: 40px;
    border-radius: 50%;
}

/* 确保个人中心的样式只应用于个人中心区域 */
#personal-center .container {
    padding: 20px;
    display: flex;
    gap: 20px;
}

/* 修改表单显示逻辑 */
#personal-center .form-card .info-form {
    display: none;
}

#personal-center .form-card {
    display: block;
}

/* 修改标签页样式 */
#personal-center .tabs {
    display: flex;
    margin-bottom: 20px;
}

#personal-center .tab {
    padding: 10px 20px;
    cursor: pointer;
}

#personal-center .tab.active {
    border-bottom: 2px solid #1890ff;
    color: #1890ff;
}